package com.kevinxiaoge.ruoli.demo;

/**
 * @author chengyuanyuan
 */

public enum Singleton1 {

    /**
     * SINGLETON_1
     */
    SINGLETON_1;

    public Singleton1 getSingleton1(){
        return SINGLETON_1;
    }
}

class EnumTest{
    public static void main(String[] args) {
        Singleton1 singleton1 = Singleton1.SINGLETON_1;
        Singleton1 singleton = Singleton1.SINGLETON_1;
        System.out.println(singleton1 == singleton);
    }
}
